import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '订单Id',
            dataIndex: 'orderId',
            width: 200,
        },
        {
            title: '订单类型（1普通订单，2贵宾厅预约订单，3贵宾通道预约订单，4延误险订单， 5转卡订单,6充值订单）',
            dataIndex: 'orderType',
            width: 200,
        },
        {
            title: '业务Id',
            dataIndex: 'businessId',
            width: 200,
        },
        {
            title: '商品Id',
            dataIndex: 'goodsId',
            width: 200,
        },
        {
            title: '商品数量',
            dataIndex: 'buyNum',
            width: 200,
        },
        {
            title: '单价',
            dataIndex: 'unitPrice',
            width: 200,
        },
        {
            title: '分类码',
            dataIndex: 'categoryCode',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isEnd',
            width: 200,
        },
        {
            title: '过期时间',
            dataIndex: 'expireDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '订单Id',
            field: 'orderId',
            component: 'Input',
            required: true,
        },
        {
            label: '订单类型（1普通订单，2贵宾厅预约订单，3贵宾通道预约订单，4延误险订单， 5转卡订单,6充值订单）',
            field: 'orderType',
            component: 'Input',
            required: true,
        },
        {
            label: '业务Id',
            field: 'businessId',
            component: 'Input',
            required: true,
        },
        {
            label: '商品Id',
            field: 'goodsId',
            component: 'Input',
            required: true,
        },
        {
            label: '商品数量',
            field: 'buyNum',
            component: 'Input',
            required: true,
        },
        {
            label: '单价',
            field: 'unitPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '分类码',
            field: 'categoryCode',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isEnd',
            component: 'Input',
            required: true,
        },
        {
            label: '过期时间',
            field: 'expireDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
